home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / bsd / i386 / signal.h < prev    next >
C/C++ Source or Header  |  1995-02-14  |  992b  |  42 lines

  1. /*
  2.  * Copyright (c) 1992 NeXT Computer, Inc.
  3.  *
  4.  * HISTORY
  5.  *
  6.  * 8 April 1992 David E. Bohman at NeXT
  7.  *    Created.
  8.  */
  9.  
  10. #ifndef    _i386_SIGNAL_
  11. #define    _i386_SIGNAL_ 1
  12.  
  13. /*
  14.  * Information pushed on stack when a signal is delivered.
  15.  * This is used by the kernel to restore state following
  16.  * execution of the signal handler.  It is also made available
  17.  * to the handler to allow it to properly restore state if
  18.  * a non-standard exit is performed.
  19.  */
  20. struct    sigcontext {
  21.     int            sc_onstack;    /* sigstack state to restore */
  22.     int            sc_mask;    /* signal mask to restore */
  23.     unsigned int    sc_eax;
  24.     unsigned int    sc_ebx;
  25.     unsigned int    sc_ecx;
  26.     unsigned int    sc_edx;
  27.     unsigned int    sc_edi;
  28.     unsigned int    sc_esi;
  29.     unsigned int    sc_ebp;
  30.     unsigned int    sc_esp;
  31.     unsigned int    sc_ss;
  32.     unsigned int    sc_eflags;
  33.     unsigned int    sc_eip;
  34.     unsigned int    sc_cs;
  35.     unsigned int    sc_ds;
  36.     unsigned int    sc_es;
  37.     unsigned int    sc_fs;
  38.     unsigned int    sc_gs;
  39. };
  40.  
  41. #endif    _i386_SIGNAL_
  42.